package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Order;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;
import java.util.List;

public interface OrderService {
    //提交订单
    void submit(Order order);
    //分页查询
    Page<Order> findByPage(Integer pageNum, Integer pageSize);
    //分页条件查询
    Page<Order> findByPageFromManage(Integer pageNum, Integer pageSize,String number, Date beginTime, Date endTime);
}
